package tech.veedo.munchkin.beans.backend;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import tech.veedo.munchkin.beans.basic.Base;
import tech.veedo.munchkin.constants.Type;

@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "审批发起人", description = "如果是非公工作流，则需要发起人发起，这是发起人的属性")
@Data
@Accessors(chain = true)
@TableName("MUNC_BEGINNER")
public class Beginner extends Base<Beginner> {

    @ApiModelProperty("发起人员类型")
    private Type type;

    @ApiModelProperty("发起人员标识")
    @TableField("psn_id")
    private String psnID;

    @ApiModelProperty("发起人员名称")
    @TableField("psn_name")
    private String psnName;

    @ApiModelProperty("发起岗位编码")
    @TableField("post_code")
    private String postCode;

    @ApiModelProperty("发起岗位名称")
    @TableField("post_name")
    private String postName;

    @ApiModelProperty("可发起的工作流标识")
    @TableField("workflow_id")
    private Long workflowID;

    @ApiModelProperty("发起工作流机构标识")
    @TableField("org_code")
    private String orgCode;

}
